<!DOCTYPE html>
<!-- 通过 xmlns:th=”http://www.thymeleaf.org“ 命令空间，将静态页面转换为动态的视图，
需要进行动态处理的元素,将使用“th:”前缀。 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title></title>

		<link rel="stylesheet" href="webjars/bootstrap/3.4.1/css/bootstrap.css">
		<script src="webjars/jquery/3.6.0/jquery.js"></script>
		<script src="webjars/bootstrap/3.4.1/js/bootstrap.js"></script>
		
		<link rel="stylesheet" href="css/readhistory.css">

	</head>

	<body>
		<div class="container">
			
			<div class="title">我的阅读记录</div>
			
			
			<!-- 电子书列表区域 -->
			<div class="read-list">
				<table class="table table-hover">
				  <tr>
					  <th>所属栏目</th>
					  <th>书籍名称</th>
					  <th>上次读到</th>
					  <th>最后浏览时间</th>
					  <th>操作</th>
				  </tr>
				


					  <tr th:each="item: ${memberInfoList[2]}">
					      <td th:each="cateItem : ${categoriesList }" th:if="${cateItem.catIed== item.novel.cateId}"> [[ ${cateItem.cateName } ]]  </td>

						  <td>[[ ${item.novel.title } ]]</td>

						  <td>
						  	 <a href="javascript:void(0)" th:onclick="novelCharpt(toNovle(novelId=${item.novel.charptList[0].novelId},sort=${item.novel.charptList[0].sort}) ) " >
								 [[ ${item.novel.charptList[0].title } ]]
							 </a>
						  </td>
						  <td> [[ ${item.lastTime } ]] </td>
						  <td><a href="javascript:void(0)" th:onclick="delCharpt(delcharpt(readId=${item.readId } )">删除</a></td>
					  </tr>



				</table>
			</div>
			
			<p class="tip">
				说明:只有在登录会员并在线阅读了TXT文档时才会产生阅读记录，仅下载无记录
			</p>

		</div>
	</body>
</html>

<script type="text/javascript">
function  novelCharpt(path) {
	
	top.location.href=path;
}
		
		
function  delCharpt(path) {
	
	top.location.href=path;
}
		
</script>

